

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>String Component &mdash; MNMLSTC Core 1.1 documentation</title>
  

  
  

  
  <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>

  
  
    

  

  
  
    <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  

  
    <link rel="top" title="MNMLSTC Core 1.1 documentation" href="index.html"/>
        <link rel="next" title="Range Component" href="range.html"/>
        <link rel="prev" title="Memory Component" href="memory.html"/> 

  
  <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav" role="document">

  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-nav-search">
        <a href="index.html" class="fa fa-home"> MNMLSTC Core</a>
        <div role="search">
  <form id ="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>
      </div>

      <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
        
        
            <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="usage.html">Using MNMLSTC Core</a><ul>
<li class="toctree-l2"><a class="reference internal" href="usage.html#library-layout">Library Layout</a></li>
<li class="toctree-l2"><a class="reference internal" href="usage.html#feature-addition-and-deprecation">Feature Addition and Deprecation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="type-traits.html">Type Traits</a></li>
<li class="toctree-l1"><a class="reference internal" href="functional.html">Functional Utilities</a></li>
<li class="toctree-l1"><a class="reference internal" href="algorithm.html">Algorithms</a><ul>
<li class="toctree-l2"><a class="reference internal" href="algorithm.html#non-modifying-sequence-operations">Non-Modifying Sequence Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="algorithm.html#modifying-sequence-operations">Modifying Sequence Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="algorithm.html#partitioning-operations">Partitioning Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="algorithm.html#sorting-operations">Sorting Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="algorithm.html#binary-search-operations">Binary Search Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="algorithm.html#set-operations">Set Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="algorithm.html#heap-operations">Heap Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="algorithm.html#min-max-operations">Min/Max Operations</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="iterator.html">Iterator Utilities</a></li>
<li class="toctree-l1"><a class="reference internal" href="optional.html">Optional Types</a><ul>
<li class="toctree-l2"><a class="reference internal" href="optional.html#optional-type">Optional Type</a></li>
<li class="toctree-l2"><a class="reference internal" href="optional.html#expected-type">Expected Type</a></li>
<li class="toctree-l2"><a class="reference internal" href="optional.html#result-type">Result Type</a></li>
<li class="toctree-l2"><a class="reference internal" href="optional.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="optional.html#specializations">Specializations</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="numeric.html">Numeric Algorithms</a></li>
<li class="toctree-l1"><a class="reference internal" href="variant.html">Variant Type</a><ul>
<li class="toctree-l2"><a class="reference internal" href="variant.html#specializations">Specializations</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="utility.html">Uncategorized Utilities</a></li>
<li class="toctree-l1"><a class="reference internal" href="memory.html">Memory</a><ul>
<li class="toctree-l2"><a class="reference internal" href="memory.html#polymorphic-smart-pointer">Polymorphic Smart Pointer</a></li>
<li class="toctree-l2"><a class="reference internal" href="memory.html#deep-copying-smart-pointer">Deep Copying Smart Pointer</a></li>
<li class="toctree-l2"><a class="reference internal" href="memory.html#dumbest-smart-pointer">Dumbest Smart Pointer</a></li>
<li class="toctree-l2"><a class="reference internal" href="memory.html#utilities">Utilities</a></li>
<li class="toctree-l2"><a class="reference internal" href="memory.html#comparison-operators">Comparison Operators</a></li>
<li class="toctree-l2"><a class="reference internal" href="memory.html#make-functions">Make Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="memory.html#specializations">Specializations</a></li>
</ul>
</li>
<li class="toctree-l1 current"><a class="current reference internal" href="">String Utilities</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#specializations">Specializations</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="range.html">Range Type</a><ul>
<li class="toctree-l2"><a class="reference internal" href="range.html#specialization">Specialization</a></li>
<li class="toctree-l2"><a class="reference internal" href="range.html#answers-to-open-questions">Answers to Open Questions</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="any.html">Any Type</a></li>
</ul>

        
      </div>
      &nbsp;
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
        <a href="index.html">MNMLSTC Core</a>
      </nav>


      
      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="breadcrumbs navigation">
  <ul class="wy-breadcrumbs">
    <li><a href="index.html">Docs</a> &raquo;</li>
      
    <li>String Component</li>
      <li class="wy-breadcrumbs-aside">
        
          <a href="_sources/string.txt" rel="nofollow"> View page source</a>
        
      </li>
  </ul>
  <hr/>
</div>
          <div role="main">
            
  <div class="section" id="string-component">
<span id="core-string-component"></span><h1>String Component<a class="headerlink" href="#string-component" title="Permalink to this headline">¶</a></h1>
<p>The string component contains types related to strings, and utilities for
strings. Specifically, the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> class resides in the
string component.</p>
<dl class="class">
<dt id="basic_string_view:T:">
<em class="property">class </em><tt class="descname">basic_string_view&lt;T&gt;</tt><a class="headerlink" href="#basic_string_view:T:" title="Permalink to this definition">¶</a></dt>
<dd><p>The <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> type has been recreated in many different projects over the
years, especially where work on immutable strings is desired. A <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>
provides an interface equivalent to a <tt class="docutils literal"><span class="pre">std::string</span> <span class="pre">const</span></tt>, and any
<tt class="docutils literal"><span class="pre">std::string</span></tt> or <tt class="docutils literal"><span class="pre">char</span> <span class="pre">const*</span></tt> is implicitly convertible to a
<a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>. A <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> is ONLY valid as long as the data it <em>views</em> is
valid.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">Attempting to access a <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> after the data it is
viewing has been destructed will result in undefined behavior.</p>
</div>
<dl class="type">
<dt id="basic_string_view:T:::difference_type">
<em class="property">type </em><tt class="descname">difference_type</tt><a class="headerlink" href="#basic_string_view:T:::difference_type" title="Permalink to this definition">¶</a></dt>
<dd><p>An alias of <tt class="docutils literal"><span class="pre">std::ptrdiff_t</span></tt></p>
</dd></dl>

<dl class="type">
<dt id="basic_string_view:T:::value_type">
<em class="property">type </em><tt class="descname">value_type</tt><a class="headerlink" href="#basic_string_view:T:::value_type" title="Permalink to this definition">¶</a></dt>
<dd><p>An alias of <tt class="docutils literal"><span class="pre">T</span></tt></p>
</dd></dl>

<dl class="type">
<dt id="basic_string_view:T:::size_type">
<em class="property">type </em><tt class="descname">size_type</tt><a class="headerlink" href="#basic_string_view:T:::size_type" title="Permalink to this definition">¶</a></dt>
<dd><p>An alias of <tt class="docutils literal"><span class="pre">std::size_t</span></tt></p>
</dd></dl>

<dl class="type">
<dt id="basic_string_view:T:::const_reference">
<em class="property">type </em><tt class="descname">const_reference</tt><a class="headerlink" href="#basic_string_view:T:::const_reference" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::reference">
<em class="property">type </em><tt class="descname">reference</tt><a class="headerlink" href="#basic_string_view:T:::reference" title="Permalink to this definition">¶</a></dt>
<dd><p><tt class="docutils literal"><span class="pre">value_type</span> <span class="pre">const&amp;</span></tt></p>
</dd></dl>

<dl class="type">
<dt id="basic_string_view:T:::const_pointer">
<em class="property">type </em><tt class="descname">const_pointer</tt><a class="headerlink" href="#basic_string_view:T:::const_pointer" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::pointer">
<em class="property">type </em><tt class="descname">pointer</tt><a class="headerlink" href="#basic_string_view:T:::pointer" title="Permalink to this definition">¶</a></dt>
<dd><p><tt class="docutils literal"><span class="pre">value_type</span> <span class="pre">const*</span></tt></p>
</dd></dl>

<dl class="type">
<dt id="basic_string_view:T:::const_iterator">
<em class="property">type </em><tt class="descname">const_iterator</tt><a class="headerlink" href="#basic_string_view:T:::const_iterator" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::iterator">
<em class="property">type </em><tt class="descname">iterator</tt><a class="headerlink" href="#basic_string_view:T:::iterator" title="Permalink to this definition">¶</a></dt>
<dd><p><a class="reference internal" href="#basic_string_view:T:::pointer" title="basic_string_view&lt;T&gt;::pointer"><tt class="xref cpp cpp-type docutils literal"><span class="pre">pointer</span></tt></a></p>
</dd></dl>

<dl class="type">
<dt id="basic_string_view:T:::const_reverse_iterator">
<em class="property">type </em><tt class="descname">const_reverse_iterator</tt><a class="headerlink" href="#basic_string_view:T:::const_reverse_iterator" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::reverse_iterator">
<em class="property">type </em><tt class="descname">reverse_iterator</tt><a class="headerlink" href="#basic_string_view:T:::reverse_iterator" title="Permalink to this definition">¶</a></dt>
<dd><p><tt class="docutils literal"><span class="pre">std::reverse_iterator&lt;const_iterator&gt;</span></tt></p>
</dd></dl>

<dl class="member">
<dt id="basic_string_view:T:::npos__constexpr">
<em class="property">static</em> constexpr <tt class="descname">npos</tt><a class="headerlink" href="#basic_string_view:T:::npos__constexpr" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Type:</th><td class="field-body"><a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type"><tt class="xref cpp cpp-type docutils literal"><span class="pre">size_type</span></tt></a></td>
</tr>
</tbody>
</table>
<p>equal to <tt class="docutils literal"><span class="pre">std::numeric_limits&lt;size_type&gt;::max()</span></tt></p>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::basic_string_view__ssCR">
 <tt class="descname">basic_string_view</tt><big>(</big>std::string const&amp; <em>str</em><big>)</big><a class="headerlink" href="#basic_string_view:T:::basic_string_view__ssCR" title="Permalink to this definition">¶</a></dt>
<dd><p>Constructs the object such that it views the entire contents of the given
string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Postcondition:</th><td class="field-body"><a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a> == <em>str</em>.size()</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::basic_string_view__pointer.size_typeCE">
<em class="property">constexpr</em>  <tt class="descname">basic_string_view</tt><big>(</big><a class="reference internal" href="#basic_string_view:T:::pointer" title="basic_string_view&lt;T&gt;::pointer">pointer</a> <em>str</em>, <a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <em>len</em><big>)</big><a class="headerlink" href="#basic_string_view:T:::basic_string_view__pointer.size_typeCE" title="Permalink to this definition">¶</a></dt>
<dd><p>Constructs the object such that it views the given string and has a
maximum length of the given length.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Postcondition:</th><td class="field-body"><a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a> == <em>len</em></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::basic_string_view__pointer">
 <tt class="descname">basic_string_view</tt><big>(</big><a class="reference internal" href="#basic_string_view:T:::pointer" title="basic_string_view&lt;T&gt;::pointer">pointer</a> <em>str</em><big>)</big><a class="headerlink" href="#basic_string_view:T:::basic_string_view__pointer" title="Permalink to this definition">¶</a></dt>
<dd><p>Constructs the object such that it views the given string, and has a
length of the entire null terminated string.</p>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::basic_string_view__X">
 <tt class="descname">basic_string_view</tt><big>(</big><em>basic_string_view const&amp;</em><big>)</big><a class="headerlink" href="#basic_string_view:T:::basic_string_view__X" title="Permalink to this definition">¶</a></dt>
<dd><p>Copies the object given, such that they are equivalent in every
way.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Because copying a <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> is cheap, no move constructor is
defined.</p>
</div>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::basic_string_viewCE">
<em class="property">constexpr</em>  <tt class="descname">basic_string_view</tt><big>(</big><big>)</big><a class="headerlink" href="#basic_string_view:T:::basic_string_viewCE" title="Permalink to this definition">¶</a></dt>
<dd><p>Constructs the object to be empty.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Postcondition:</th><td class="field-body"><a class="reference internal" href="iterator.html#empty__ContainerCRCE" title="empty"><tt class="xref cpp cpp-func docutils literal"><span class="pre">empty()</span></tt></a> == true</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::castto-std::basic_string:T:-operatorC">
 <tt class="descname">operator</tt> std::basic_string&lt;T&gt;<big>(</big><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::castto-std::basic_string:T:-operatorC" title="Permalink to this definition">¶</a></dt>
<dd><p>Marked as <em>explicit</em>. Creates a new <tt class="docutils literal"><span class="pre">std::basic_string</span></tt> from the
<a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>.</p>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::cbeginCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::const_iterator" title="basic_string_view&lt;T&gt;::const_iterator">const_iterator</a> <tt class="descname">cbegin</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::cbeginCCE" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::beginCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::const_iterator" title="basic_string_view&lt;T&gt;::const_iterator">const_iterator</a> <tt class="descname">begin</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::beginCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Iterator to the beginning of the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::cendCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::const_iterator" title="basic_string_view&lt;T&gt;::const_iterator">const_iterator</a> <tt class="descname">cend</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::cendCCE" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::endCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::const_iterator" title="basic_string_view&lt;T&gt;::const_iterator">const_iterator</a> <tt class="descname">end</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::endCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Iterator to the end of the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::crbeginC">
<a class="reference internal" href="#basic_string_view:T:::const_reverse_iterator" title="basic_string_view&lt;T&gt;::const_reverse_iterator">const_reverse_iterator</a> <tt class="descname">crbegin</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::crbeginC" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::rbeginC">
<a class="reference internal" href="#basic_string_view:T:::const_reverse_iterator" title="basic_string_view&lt;T&gt;::const_reverse_iterator">const_reverse_iterator</a> <tt class="descname">rbegin</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::rbeginC" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">reverse iterator to the beginning of the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::crendC">
<a class="reference internal" href="#basic_string_view:T:::const_reverse_iterator" title="basic_string_view&lt;T&gt;::const_reverse_iterator">const_reverse_iterator</a> <tt class="descname">crend</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::crendC" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::rendC">
<a class="reference internal" href="#basic_string_view:T:::const_reverse_iterator" title="basic_string_view&lt;T&gt;::const_reverse_iterator">const_reverse_iterator</a> <tt class="descname">rend</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::rendC" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">reverse iterator to the beginning of the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::max_sizeCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">max_size</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::max_sizeCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::lengthCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">length</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::lengthCCE" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::sizeCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">size</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::sizeCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Length of the object in terms of <tt class="docutils literal"><span class="pre">sizeof(T)</span> <span class="pre">*</span> <span class="pre">N</span></tt></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::emptyCCE">
<em class="property">constexpr</em> bool <tt class="descname">empty</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::emptyCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Whether the object is a &#8216;null view&#8217;</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::subscript-operator__size_typeCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::reference" title="basic_string_view&lt;T&gt;::reference">reference</a> <tt class="descname">operator[]</tt><big>(</big><a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <em>idx</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::subscript-operator__size_typeCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">reference to the <a class="reference internal" href="#basic_string_view:T:::value_type" title="basic_string_view&lt;T&gt;::value_type"><tt class="xref cpp cpp-type docutils literal"><span class="pre">value_type</span></tt></a> located at <em>idx</em>.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::frontCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::reference" title="basic_string_view&lt;T&gt;::reference">reference</a> <tt class="descname">front</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::frontCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">reference to the <a class="reference internal" href="#basic_string_view:T:::value_type" title="basic_string_view&lt;T&gt;::value_type"><tt class="xref cpp cpp-type docutils literal"><span class="pre">value_type</span></tt></a> located at the index 0.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::backCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::reference" title="basic_string_view&lt;T&gt;::reference">reference</a> <tt class="descname">back</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::backCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">reference to the <a class="reference internal" href="#basic_string_view:T:::value_type" title="basic_string_view&lt;T&gt;::value_type"><tt class="xref cpp cpp-type docutils literal"><span class="pre">value_type</span></tt></a> located at the end of the
<a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::dataCCE">
<em class="property">constexpr</em> <a class="reference internal" href="#basic_string_view:T:::pointer" title="basic_string_view&lt;T&gt;::pointer">pointer</a> <tt class="descname">data</tt><big>(</big><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::dataCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><a class="reference internal" href="#basic_string_view:T:::pointer" title="basic_string_view&lt;T&gt;::pointer"><tt class="xref cpp cpp-type docutils literal"><span class="pre">pointer</span></tt></a> to the data viewed by the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>.
This pointer is not guaranteed to be null terminated, and
should be treated as such.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::remove_prefix__size_type">
void <tt class="descname">remove_prefix</tt><big>(</big><a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <em>n</em><big>)</big><a class="headerlink" href="#basic_string_view:T:::remove_prefix__size_type" title="Permalink to this definition">¶</a></dt>
<dd><p>Moves the front of the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> forward <em>n</em> characters or
<a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a> if <em>n</em> is greater than <a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a>.</p>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::remove_suffix__size_type">
void <tt class="descname">remove_suffix</tt><big>(</big><a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <em>n</em><big>)</big><a class="headerlink" href="#basic_string_view:T:::remove_suffix__size_type" title="Permalink to this definition">¶</a></dt>
<dd><p>Moves the end of the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> backwards <em>n</em> characters or
<a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a> if <em>n</em> is greater than <a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a>.</p>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::clear">
void <tt class="descname">clear</tt><big>(</big><big>)</big><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::clear" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> to be empty.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Postconditions:</th><td class="field-body"><a class="reference internal" href="iterator.html#empty__ContainerCRCE" title="empty"><tt class="xref cpp cpp-func docutils literal"><span class="pre">empty()</span></tt></a> == true</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::substr__size_type.size_typeCCE">
<em class="property">constexpr</em> basic_string_view <tt class="descname">substr</tt><big>(</big><a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <em>pos</em>, <a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <em>n</em><em>=npos</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::substr__size_type.size_typeCCE" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">a new <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> with starting point <em>pos</em> and a length of
<em>n</em> characters. If <em>n</em> is equal to <a class="reference internal" href="#basic_string_view:T:::npos__constexpr" title="basic_string_view&lt;T&gt;::npos"><tt class="xref cpp cpp-member docutils literal"><span class="pre">npos</span></tt></a>, or
<em>pos</em> + <em>n</em> is greater than <a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a>, the length will be
the remainder of the string. Otherwise it will be <em>n</em>
characters.</td>
</tr>
<tr class="field-even field"><th class="field-name">Throws:</th><td class="field-body"><tt class="docutils literal"><span class="pre">std::out_of_range</span></tt> if <em>pos</em> is greater than <a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a></td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::starts_with__basic_string_viewC">
bool <tt class="descname">starts_with</tt><big>(</big>basic_string_view <em>value</em><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::starts_with__basic_string_viewC" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::starts_with__value_typeC">
bool <tt class="descname">starts_with</tt><big>(</big><a class="reference internal" href="#basic_string_view:T:::value_type" title="basic_string_view&lt;T&gt;::value_type">value_type</a> <em>value</em><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::starts_with__value_typeC" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Whether the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> starts with the given <em>value</em>.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::ends_with__basic_string_viewC">
bool <tt class="descname">ends_with</tt><big>(</big>basic_string_view <em>value</em><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::ends_with__basic_string_viewC" title="Permalink to this definition">¶</a></dt>
<dt id="basic_string_view:T:::ends_with__value_typeC">
bool <tt class="descname">ends_with</tt><big>(</big><a class="reference internal" href="#basic_string_view:T:::value_type" title="basic_string_view&lt;T&gt;::value_type">value_type</a> <em>value</em><big>)</big><tt class="descclassname"> const</tt><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::ends_with__value_typeC" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Whether the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> ends with the given <em>value</em>.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::compare__basic_string_viewC">
<a class="reference internal" href="#basic_string_view:T:::difference_type" title="basic_string_view&lt;T&gt;::difference_type">difference_type</a> <tt class="descname">compare</tt><big>(</big>basic_string_view <em>that</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::compare__basic_string_viewC" title="Permalink to this definition">¶</a></dt>
<dd><p>Compares two <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>&#8216;s. First calculates the number of characters
to compare, then compares via a character by character lexicographical
comparison. If the result is 0, then their sizes are compared and the
return value is affected by their length.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">negative value if this <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> is less than the other,
zero if the both <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>&#8216;s are equal,
positive value if this <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> is greater than the other.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::at__size_typeC">
<a class="reference internal" href="#basic_string_view:T:::reference" title="basic_string_view&lt;T&gt;::reference">reference</a> <tt class="descname">at</tt><big>(</big><a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <em>idx</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::at__size_typeC" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><a class="reference internal" href="#basic_string_view:T:::value_type" title="basic_string_view&lt;T&gt;::value_type"><tt class="xref cpp cpp-type docutils literal"><span class="pre">value_type</span></tt></a> located at <em>idx</em>.</td>
</tr>
<tr class="field-even field"><th class="field-name">Throws:</th><td class="field-body"><tt class="docutils literal"><span class="pre">std::out_of_range</span></tt> if <em>idx</em> is greater than or equal to
<a class="reference internal" href="iterator.html#size__ContainerCRCE" title="size"><tt class="xref cpp cpp-func docutils literal"><span class="pre">size()</span></tt></a>.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::find_first_not_of__XC">
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find_first_not_of</tt><big>(</big><em>basic_string_view</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::find_first_not_of__XC" title="Permalink to this definition">¶</a></dt>
<dt>
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find_first_not_of</tt><big>(</big><em>value_type</em><big>)</big><tt class="descclassname"> const</tt></dt>
<dd><p>Finds the first character equal to none of the characters in the given
character sequence.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">index of the first character not in the given sequence, or
<a class="reference internal" href="#basic_string_view:T:::npos__constexpr" title="basic_string_view&lt;T&gt;::npos"><tt class="xref cpp cpp-member docutils literal"><span class="pre">npos</span></tt></a> if no such character is found.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::find_last_not_of__XC">
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find_last_not_of</tt><big>(</big><em>basic_string_view</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::find_last_not_of__XC" title="Permalink to this definition">¶</a></dt>
<dt>
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find_last_not_of</tt><big>(</big><em>value_type</em><big>)</big><tt class="descclassname"> const</tt></dt>
<dd><p>Finds the last character equal to none of the characters in the given
character sequence.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">index of the last character not in the given sequence, or
<a class="reference internal" href="#basic_string_view:T:::npos__constexpr" title="basic_string_view&lt;T&gt;::npos"><tt class="xref cpp cpp-member docutils literal"><span class="pre">npos</span></tt></a> if no such character is found.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::find_first_of__XC">
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find_first_of</tt><big>(</big><em>basic_string_view</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::find_first_of__XC" title="Permalink to this definition">¶</a></dt>
<dt>
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find_first_of</tt><big>(</big><em>value_type</em><big>)</big><tt class="descclassname"> const</tt></dt>
<dd><p>Finds the first character equal to one of characters in the given
character sequence.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Index of the first character found, or <a class="reference internal" href="#basic_string_view:T:::npos__constexpr" title="basic_string_view&lt;T&gt;::npos"><tt class="xref cpp cpp-member docutils literal"><span class="pre">npos</span></tt></a> if no such
character is found.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::find_last_of__XC">
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find_last_of</tt><big>(</big><em>basic_string_view</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::find_last_of__XC" title="Permalink to this definition">¶</a></dt>
<dt>
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find_last_of</tt><big>(</big><em>value_type</em><big>)</big><tt class="descclassname"> const</tt></dt>
<dd><p>Finds the last character equal to one of characters in the given
character sequence.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Index of the last character found, or <a class="reference internal" href="#basic_string_view:T:::npos__constexpr" title="basic_string_view&lt;T&gt;::npos"><tt class="xref cpp cpp-member docutils literal"><span class="pre">npos</span></tt></a> is no such
character is found.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::rfind__XC">
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">rfind</tt><big>(</big><em>basic_string_view</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::rfind__XC" title="Permalink to this definition">¶</a></dt>
<dt>
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">rfind</tt><big>(</big><em>value_type</em><big>)</big><tt class="descclassname"> const</tt></dt>
<dd><p>Finds the last substring equal to the given character sequence.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">index of the desired substring, or <a class="reference internal" href="#basic_string_view:T:::npos__constexpr" title="basic_string_view&lt;T&gt;::npos"><tt class="xref cpp cpp-member docutils literal"><span class="pre">npos</span></tt></a> if no such substring
was found.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::find__XC">
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find</tt><big>(</big><em>basic_string_view</em><big>)</big><tt class="descclassname"> const</tt><a class="headerlink" href="#basic_string_view:T:::find__XC" title="Permalink to this definition">¶</a></dt>
<dt>
<a class="reference internal" href="#basic_string_view:T:::size_type" title="basic_string_view&lt;T&gt;::size_type">size_type</a> <tt class="descname">find</tt><big>(</big><em>value_type</em><big>)</big><tt class="descclassname"> const</tt></dt>
<dd><p>Finds the first substring equal to the given character sequence.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">index of the desired substring, or <a class="reference internal" href="#basic_string_view:T:::npos__constexpr" title="basic_string_view&lt;T&gt;::npos"><tt class="xref cpp cpp-member docutils literal"><span class="pre">npos</span></tt></a> if no such substring
was found.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="basic_string_view:T:::swap__basic_string_viewR">
void <tt class="descname">swap</tt><big>(</big>basic_string_view&amp; <em>that</em><big>)</big><tt class="descclassname"> noexcept</tt><a class="headerlink" href="#basic_string_view:T:::swap__basic_string_viewR" title="Permalink to this definition">¶</a></dt>
<dd><p>Swaps the contents of the <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> with <em>that</em>.</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="eq-operator__X.X">
bool <tt class="descname">operator==</tt><big>(</big><em>basic_string_view</em>, <em>basic_string_view</em><big>)</big><a class="headerlink" href="#eq-operator__X.X" title="Permalink to this definition">¶</a></dt>
<dt id="neq-operator__X.X">
bool <tt class="descname">operator!=</tt><big>(</big><em>basic_string_view</em>, <em>basic_string_view</em><big>)</big><a class="headerlink" href="#neq-operator__X.X" title="Permalink to this definition">¶</a></dt>
<dt id="gte-operator__X.X">
bool <tt class="descname">operator&gt;=</tt><big>(</big><em>basic_string_view</em>, <em>basic_string_view</em><big>)</big><a class="headerlink" href="#gte-operator__X.X" title="Permalink to this definition">¶</a></dt>
<dt id="lte-operator__X.X">
bool <tt class="descname">operator&lt;=</tt><big>(</big><em>basic_string_view</em>, <em>basic_string_view</em><big>)</big><a class="headerlink" href="#lte-operator__X.X" title="Permalink to this definition">¶</a></dt>
<dt id="gt-operator__X.X">
bool <tt class="descname">operator&gt;</tt><big>(</big><em>basic_string_view</em>, <em>basic_string_view</em><big>)</big><a class="headerlink" href="#gt-operator__X.X" title="Permalink to this definition">¶</a></dt>
<dt id="lt-operator__X.X">
bool <tt class="descname">operator&lt;</tt><big>(</big><em>basic_string_view</em>, <em>basic_string_view</em><big>)</big><a class="headerlink" href="#lt-operator__X.X" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Whether the given <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>&#8216;s meet the requirements for the
given operator. Follows the same semantics as the <tt class="docutils literal"><span class="pre">std::string</span></tt>
comparison operators.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="lshift-operator__std::basic_ostream:T:R.basic_string_view:T:CR">
std::basic_ostream&lt;T&gt;&amp; <tt class="descname">operator&lt;&lt;</tt><big>(</big>std::basic_ostream&lt;T&gt;&amp; <em>os</em>, basic_string_view&lt;T&gt; const&amp; <em>str</em><big>)</big><a class="headerlink" href="#lshift-operator__std::basic_ostream:T:R.basic_string_view:T:CR" title="Permalink to this definition">¶</a></dt>
<dd><p>Overload to print a <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> directly to the given stream <em>os</em>.</p>
</dd></dl>

<dl class="type">
<dt id="string_view">
<em class="property">type </em><tt class="descname">string_view</tt><a class="headerlink" href="#string_view" title="Permalink to this definition">¶</a></dt>
<dd><p>A type alias for <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> where <tt class="docutils literal"><span class="pre">T</span></tt> is <tt class="docutils literal"><span class="pre">char</span></tt>.</p>
</dd></dl>

<dl class="type">
<dt id="wstring_view">
<em class="property">type </em><tt class="descname">wstring_view</tt><a class="headerlink" href="#wstring_view" title="Permalink to this definition">¶</a></dt>
<dd><p>A type alias for <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> where <tt class="docutils literal"><span class="pre">T</span></tt> is <tt class="docutils literal"><span class="pre">wchar_t</span></tt>.</p>
</dd></dl>

<dl class="type">
<dt id="u16string_view">
<em class="property">type </em><tt class="descname">u16string_view</tt><a class="headerlink" href="#u16string_view" title="Permalink to this definition">¶</a></dt>
<dd><p>A type alias for <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> where <tt class="docutils literal"><span class="pre">T</span></tt> is <tt class="docutils literal"><span class="pre">char16_t</span></tt>.</p>
</dd></dl>

<dl class="type">
<dt id="u32string_view">
<em class="property">type </em><tt class="descname">u32string_view</tt><a class="headerlink" href="#u32string_view" title="Permalink to this definition">¶</a></dt>
<dd><p>A type alias for <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a> where <tt class="docutils literal"><span class="pre">T</span></tt> is <tt class="docutils literal"><span class="pre">char32_t</span></tt>.</p>
</dd></dl>

<div class="section" id="specializations">
<h2>Specializations<a class="headerlink" href="#specializations" title="Permalink to this headline">¶</a></h2>
<p>Several specializations for standard code are provided</p>
<dl class="function">
<dt id="swap__X.X">
void <tt class="descname">swap</tt><big>(</big><em>basic_string_view&amp;</em>, <em>basic_string_view&amp;</em><big>)</big><a class="headerlink" href="#swap__X.X" title="Permalink to this definition">¶</a></dt>
<dd><p>Calls <a class="reference internal" href="#basic_string_view:T:::swap__basic_string_viewR" title="basic_string_view&lt;T&gt;::swap"><tt class="xref cpp cpp-func docutils literal"><span class="pre">basic_string_view&lt;T&gt;::swap()</span></tt></a></p>
</dd></dl>

<dl class="class">
<dt id="hash:basic_string_view:T::">
<em class="property">class </em><tt class="descname">hash&lt;basic_string_view&lt;T&gt;&gt;</tt><a class="headerlink" href="#hash:basic_string_view:T::" title="Permalink to this definition">¶</a></dt>
<dd><p>Specialization hash for <a class="reference internal" href="#basic_string_view:T:" title="basic_string_view&lt;T&gt;"><tt class="xref cpp cpp-class docutils literal"><span class="pre">string_view</span></tt></a>.</p>
</dd></dl>

</div>
</div>


          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="range.html" class="btn btn-neutral float-right" title="Range Component"/>Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="memory.html" class="btn btn-neutral" title="Memory Component"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2013 - 2014, MNMLSTC.
    </p>
  </div>

  <a href="https://github.com/snide/sphinx_rtd_theme">Sphinx theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>
</footer>
        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'./',
            VERSION:'1.1',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true
        };
    </script>
      <script type="text/javascript" src="_static/jquery.js"></script>
      <script type="text/javascript" src="_static/underscore.js"></script>
      <script type="text/javascript" src="_static/doctools.js"></script>

  

  
  
    <script type="text/javascript" src="_static/js/theme.js"></script>
  

  
  
  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.StickyNav.enable();
      });
  </script>
   

</body>
</html>